<script lang="ts" setup>
import ProductBox from "../Common/ProductBox.vue";
import { ref } from "vue";
import type { Dayjs } from "dayjs";
type RangeValue = [Dayjs, Dayjs];

const value5 = ref<string>("Option1");
const value1 = ref<RangeValue>();
const value6 = ref<string>("");

const dataSource = [
  {
    key: "1",
    no: 2,
    withdrawAcc: "api",
    outlay: "-100",
    tip: "200",
    status: "审核中",
    done: "",
    time: "",
    result: "",
    desc: "xxxxx",
  },
];

const columns = [
  {
    title: "提现编号",
    dataIndex: "no",
    key: "no",
  },

  {
    title: "提现账号",
    dataIndex: "withdrawAcc",
    key: "withdrawAcc",
  },
  {
    title: "提现金额",
    dataIndex: "outlay",
    key: "outlay",
  },
  {
    title: "手续费",
    dataIndex: "tip",
    key: "tip",
  },
  {
    title: "提现状态",
    dataIndex: "status",
    key: "status",
  },
  {
    title: "提现结果",
    dataIndex: "result",
    key: "result",
  },
  {
    title: "提现时间",
    dataIndex: "time",
    key: "time",
  },
  {
    title: "完成时间",
    dataIndex: "done",
    key: "done",
  },
  {
    title: "备注",
    dataIndex: "desc",
    key: "desc",
  },
  {
    title: "操作",
    dataIndex: "operation",
    key: "operation",
  },
];
</script>
<template>
  <div class="pr-5 pl-5">
    <ProductBox title="提现记录" :back="true">
      <template #default>
        <div class="flex flex-wrap">
          <div class="flex w-100 mb-5">
            <a-input-group compact>
              <a-select v-model:value="value5">
                <a-select-option value="Option1">提现编号</a-select-option>
              </a-select>
              <a-input v-model:value="value6" style="width: 70%" />
            </a-input-group>
          </div>
          <span class="w-5 md:block hidden"></span>
          <a-range-picker v-model:value="value1" class="mb-5" />
          <a-button type="text">
            <img src="/console/downloadIcon.png" alt="" class="w-5 h-5" />
          </a-button>
        </div>
        <div class="m-5"></div>
        <a-table :scroll="{ x: 1000, }" :dataSource="dataSource" :columns="columns" />
      </template>
    </ProductBox>
  </div>
</template>
<style lang="scss" scoped></style>
